// es6模块化
import $ from 'jquery'
import filmsTpl from './views/films.art'



// let html = ''
$.get('/api/v1/getNowPlayingFilmList?cityId=110100&pageNum=1&pageSize=10').then(ret => {
  let films = ret.data.films
  /* html = films.map(({ name }) => `<li>${name}</li>`).join('')
  document.querySelector('#root').innerHTML = html */
  document.querySelector('#root').innerHTML = filmsTpl({films})
})
